/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufba.lasid.utils;

import br.ufba.lasid.base.ResourceFactory;
import br.ufba.lasid.base.api.IResourceFactory;
import br.ufba.lasid.comm.Communicator;
import br.ufba.lasid.comm.api.ICommunicator;
import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 *
 * @author aliriosa
 */
public final class Base {
    
    public static ICommunicator Communicator = new Communicator();
    public static IResourceFactory ResourceFactory = new ResourceFactory();
    
    public static BufferedReader getProcessInput(Process p) throws Exception{
        BufferedReader reader = new BufferedReader(
                new InputStreamReader(p.getInputStream())
        );
        
        return reader;
    }
            
}
